package org.eminem.mybaitsplus.simple.ar.org.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author eminem
 * @since 2019-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("org_user")
@ApiModel(value="OrgUserEntity对象", description="用户表")
public class OrgUserEntity extends Model<OrgUserEntity> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id_", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "姓名")
    @TableField("fullname_")
    private String fullname;

    @ApiModelProperty(value = "账号")
    @TableField("account_")
    private String account;

    @ApiModelProperty(value = "密码")
    @TableField("password_")
    private String password;

    @ApiModelProperty(value = "邮箱")
    @TableField("email_")
    private String email;

    @ApiModelProperty(value = "手机号码")
    @TableField("mobile_")
    private String mobile;

    @ApiModelProperty(value = "微信号")
    @TableField("weixin_")
    private String weixin;

    @ApiModelProperty(value = "地址")
    @TableField("address_")
    private String address;

    @ApiModelProperty(value = "头像")
    @TableField("photo_")
    private String photo;

    @ApiModelProperty(value = "性别：男，女，未知")
    @TableField("sex_")
    private String sex;

    @ApiModelProperty(value = "来源")
    @TableField("from_")
    private String from;

    @ApiModelProperty(value = "0:禁用，1正常")
    @TableField("status_")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time_")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by_")
    private String createBy;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by_")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time_")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
